﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SharpLite.Domain;
using System.ComponentModel.DataAnnotations;

namespace DAEProde.Domain
{
    public class MatchDate : Entity
    {
        [Display(Name = "Nombre")]
        public virtual string Name { get; set; }

        [Display(Name = "Fecha")]
        public virtual DateTime Date { get; set; }

        [Display(Name = "Torneo")]
        public virtual Tournament Tournament { get; set; }

        // one-to-many desde fecha a partido
        [Display(Name = "Partidos")]
        public virtual IList<Match> Matches { get; set; }

        // one-to-many desde fecha a ticket
        [Display(Name = "Boletas")]
        public virtual IList<Ticket> Tickets { get; set; }

        public MatchDate()
        {
            Matches = new List<Match>();
            Tickets = new List<Ticket>();
        }
    }
}
